<script type="text/javascript">
menuLayers.show = function(id, controller, objid, objname, e) {
    var mnu = document.getElementById? document.getElementById(id): null;
    if (!mnu) return;
    this.activeMenuID = id;
    if ( mnu.onmouseout == null ) mnu.onmouseout = this.mouseoutCheck;
    if ( mnu.onmouseover == null ) mnu.onmouseover = this.clearTimer;
    viewport.getAll();
    rewritePopupContent(controller, objid, objname);

    this.position(mnu,e);
}
</script>

<script>
function confirmAndDelete(url) {
	if (confirm("Adakah Anda Pasti?")) {
		location = url
	}
	
}


function rewritePopupContent(controller, objid, objname) {
    $('popmenu').style.width = 180;
    $('popmenu').innerHTML = "<ul>" + 
					       "<li><a href=\""  + "?act=view_sek&" + "id=" + objid + "\">&nbsp;&nbsp;Lihat</a>" + 
					       "<li><a href=\""  + "?act=edit_sek&" + "id=" + objid + "\">&nbsp;&nbsp;Kemaskini</a>" + 
					       "<li><a href=\"javascript: confirmAndDelete('?act=delete_sek&id=" + objid + "')" + "\">&nbsp;&nbsp;Hapus</a><hr size=1>" + 
					       "<li><a href=\""  + "/hr" + "/semak_status_mohon/" + objid + "\">&nbsp;&nbsp;Maklumat Disiplin</a>" + 
					       "<li><a href=\""  + "/hr" + "/semak_status_mohon/" + objid + "\">&nbsp;&nbsp;Tukar Kelas</a>" + 
					       "<li><a href=\""  + "/hr" + "/semak_status_mohon/" + objid + "\">&nbsp;&nbsp;Tukar Sekolah</a>" + 
					       "</ul>"
     
}

function a(id) {
	MM_openBrWindow('/course_implementations/show_timetable2/'+id,'','scrollbars=yes,width=1000,height=600')
}
</script>

        
        <div id="content">
            <div id="content_header" class="size_20" style=" border-bottom-width:medium; border-bottom-style:solid; border-bottom-color:#777777">
            	<img src="images/icn_mytaskTitle.gif" align="absmiddle" width="" height=""> Institusi : Senarai Murid </div>
        	<div id="content_bgblue">
                <div id="content_bgwhite">

        	
            
<div style="border: 0pt solid silver; width: 100%;">

<? alert_some_message()?>
<form name="viewClass.form" action="?act=senarai_sek" method="POST" target="" onSubmit="" onReset="">
  <fieldset class="fieldset_orange">
  <legend style="font-size:1.0em; font-weight: bold;">Maklumat Institusi </legend>
  <table border="0" cellpadding="2" cellspacing="1" width="100%">
    <tbody>
      <tr>
        <td class="classRowLabel" align="left" valign="top" width="10">&nbsp;</td>
        <td width="27%" height="20" align="left" valign="top" class="classRowLabel"><strong>Kod Institusi</strong></td>
        <td width="30" align="center" valign="top" class="classRowLabel"><span style="font-weight:bold">:</span></td>
        <td class="classRow"><?=$institusi->kod?></td>
      </tr>
      <tr>
        <td class="classRowLabel" align="left" valign="top" width="10">&nbsp;</td>
        <td width="27%" height="20" align="left" valign="top" class="classRowLabel"><strong>Nama Institusi</strong></td>
        <td width="30" align="center" valign="top" class="classRowLabel"><span style="font-weight:bold">:</span></td>
        <td class="classRow"><?=$institusi->nama?></td>
      </tr>
      <tr>
        <td class="classRowLabel" align="left" valign="top" width="10">&nbsp;</td>
        <td width="27%" height="20" align="left" valign="top" class="classRowLabel"><strong>Agensi Pelaksana </strong></td>
        <td width="30" align="center" valign="top" class="classRowLabel"><span style="font-weight:bold">:</span></td>
        <td class="classRow"><?=getFieldFromId('ref_agensi_pelaksana','agensi_pelaksana',$institusi->agensi_pelaksana_id)?></td>
      </tr>
    </tbody>
  </table>
  </fieldset>
  <fieldset style="background:#ffffff; border-width:thin; border-style:solid; padding:10px; border-color:#CCCCCC; display:none;">
<legend style="font-size:1.0em; font-weight: bold;">Carian </legend>

<table border="0" cellpadding="5" cellspacing="1" width="100%">
  <tbody>
    <tr id="SkimRow" style="display: ;">
      <td class="TableField" width="8"><font class="ErrorMessage"></font></td>
      <td class="TableField" width="150">Nama Institusi </td>
      <td class="TableField" width="18">:</td>
      <td class="TableRowLeft" width="487"><input type="text" name="q" size="40"></td>
    </tr>
    <tr id="SkimRow" style="display: ;">
      <td class="TableField" width="8"><font class="ErrorMessage"></font></td>
      <td class="TableField" width="150">Negeri</td>
      <td class="TableField" width="18">:</td>
      <td class="TableRowLeft" width="487"><span class="classRow">
        <select name="n" size="0" onBlur="" onChange="return updateModules(); " onFocus="">
          <option selected="selected" value="-1"> Pilih Negeri</option>
          <option value="01"> Johor</option>
          <option value="02"> Kedah</option>
          <option value="03"> Kelantan</option>
          <option value="04"> Melaka</option>
          <option value="05"> Negeri Sembilan</option>
          <option value="06"> Pahang</option>
          <option value="08"> Perak</option>
          <option value="09"> Perlis</option>
          <option value="07"> Pulau Pinang</option>
          <option value="12"> Sabah</option>
          <option value="13"> Sarawak</option>
          <option value="10"> Selangor</option>
          <option value="11"> Terengganu</option>
          <option value="14"> WP Kuala Lumpur</option>
          <option value="15"> WP Labuan</option>
          <option value="16"> WP Putrajaya</option>
        </select>
      </span></td>
    </tr>
    <tr id="JenisBantuanRow" style="display: ;">
      <td class="TableField" width="8">&nbsp;</td>
      <td class="TableField" width="150">PPD</td>
      <td class="TableField" width="18">:</td>
      <td class="TableRowLeft" width="487"><span class="classRow">
        <select name="p" size="0" onBlur="" onChange="" onFocus="">
          <option selected="selected" value="">Pilih PPD</option>
        </select>
      </span></td>
    </tr>
    <tr id="NegeriRow" style="">
      <td class="TableField" width="8">&nbsp;</td>
      <td class="TableField" width="150">Agensi Pelaksana </td>
      <td class="TableField" width="18">:</td>
      <td class="TableRowLeft" width="487"><select name="a" size="0" onBlur="" onChange="" onFocus="">
        <option selected="selected" value="-1"> Pilih Agensi Pelaksana </option>
        <option value="01"> KPM</option>
        <option value="02"> Swasta</option>
        <option value="03"> KEMAS</option>
        <option value="04"> Perpaduan</option>
      </select>
        <input name="Negeri" value="" size="10" type="hidden">      </td>
    </tr>
    
    
    <tr class="NormalTextLeft">
      <td colspan="4" align="center"><span class="TableRowLeft">
        <input name="button" type="submit" onClick="" value="Cari" style=" width:100px;">
      </span></td>
    </tr>
  </tbody>
</table>
</fieldset>

</form>

<br>
<!--fieldset style="background:#ffffff; border-width:thin; border-style:solid; padding:10px; border-color: #dddddd;">
<legend style=" font-weight:bold;">Senarai Prasekolah</legend-->
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
              <tr>
                <td align="left" scope="col" style=" font-weight:bold; border-bottom-style:solid; border-bottom-width:thin;">Senarai Murid </td>
              </tr>
            </table>
			
			<br/>
            <font class="NormalTextLeft">
            
                <li>&nbsp;Isihan <i>default</i> senarai adalah pada lajur Nama.  
                </li><li>&nbsp;Klik pada lajur yang hendak diisih.
                
                        </li>
                <li>&nbsp;Klik pada Nama Murid untuk paparan butir-butir selanjutnya.</li>
                    
            </font>
<br>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
  <tr>
    <td><a href="?act=new_murid" style=" text-decoration:underline;">Tambah Murid </a></td>
    <td width="20" align="left"><a href="?act=list_sek&amp;p=<?=$page-1?>"><b style=" font-size:1.5em">&laquo;</b></a></td>
    <td width="60" align="right">
      <select name="select2" size="0" onBlur="" onChange="location='?act=list_murid&p='+this.value" onFocus="">
<?
for ($face=($page-5);$face<($page+5);$face++) {
	if ($face < 1) continue;
	$selected = '';
	if ($face == $page) {
		$selected = "selected";
	}
	else {
		$selected = "";
	}
?>
        <option value="<?=$face?>" <?=$selected?>>Muka <?=$face?></option>
<? } ?>
      </select>
    </td>
    <td width="20" align="right"><a href="?act=list_sek&amp;p=<?=$page+1?>"><b style=" font-size:1.5em">&raquo;</b></a></td>
  </tr>
</table>

<div style=" overflow: ;">
<table width="100%" border="0" cellspacing="1" cellpadding="2" style=" border:thin; border-color:#CCCCCC; border-style:solid;">
  <tr>
    <td width="20" align="center" bgcolor="#999999" scope="col"><span class="style3">Bil</span></td>
    <td align="center" bgcolor="#999999" scope="col"><span class="style3">Nama Murid </span></td>
    <td align="center" bgcolor="#999999" scope="col"><span class="style3">ID Murid </span></td>
    <td align="center" bgcolor="#999999" scope="col">Kelas</td>
    <td align="center" bgcolor="#999999" scope="col"><span class="style3">Negeri</span></td>
    <td align="center" bgcolor="#999999" scope="col"><span class="style3">Status</span></td>
  </tr>

<?
$even = true;
$i = ($page-1)*20;
while ($dat = pg_fetch_object($res)) {
	$i++;
	$even = !$even;
	$bgcolor = ($even)? "":"#E9F0F5";
?>
  <tr bgcolor="<?=$bgcolor?>" onMouseOver="this.style.background='#FFFFCC'" onMouseOut="this.style.background='<?=$bgcolor?>'" onMouseDown="menuLayers.show('popmenu','index.jsp?act=', '<?=$dat->id?>', 'KPPT(PENDAKWAAN)', event)">
    <td><?=$i?>.</td>
    <td><?=$dat->name?></td>
    <td><?=$dat->ic_new?></td>
    <td><?=getFieldFromId("master_kelas","nama_kelas",$dat->current_kelas_id)?></td>
    <td style=" width:150px; overflow:scroll; height:20px;"><?= strtoupper($dat->negeri)?></td>
    <td align="center"><? echo ($dat->aktif=='t')? "Aktif":"Aktif"; ?></td>
  </tr>
<? } ?>
</table>
</div>

<!--table width="100%" border="0" cellspacing="1" cellpadding="2">
  <tr>
    <td>&nbsp;</td>
    <td width="20" align="left"><a href="?act=list_sek&p=<?=$page-1?>"><b style=" font-size:1.5em">&laquo;</b></a></td>
    <td align="right" width="60"><select name="select" size="0" onblur="" onchange="location='?act=list_murid&amp;p='+this.value" onfocus="">
      <?
for ($face=($page-5);$face<($page+5);$face++) {
	if ($face < 1) continue;
	$selected = '';
	if ($face == $page) {
		$selected = "selected";
	}
	else {
		$selected = "";
	}
?>
      <option value="<?=$face?>" <?=$selected?>>Muka
        <?=$face?>
        </option>
      <? } ?>
    </select></td>
    <td width="20" align="right"><a href="?act=list_sek&p=<?=$page+1?>"><b style=" font-size:1.5em">&raquo;</b></a></td>
  </tr>
</table-->
<!--/fieldset-->

</div>


 <br>
 <br>
 <br>
 <br> <!--div id="content_footborder" style="width:930px; position:absolute; left:0; background:#ccccff; text-align:center">
  &copy; Kementerian Pelajaran Malaysia, 2010.
 </div-->
</div>
<!-- close content_bgwhite -->
</div>
<!-- close content_bgblue -->
</div>
<!-- close content -->

</div>
<!-- close container_content -->

</div>
<!-- close container -->
